﻿using Entity;
using System.Collections.Generic;
using Utils;

namespace DataBaseConnect.App.UserApp
{
    public interface IUserAppService{

        /// <summary>
        /// 根据用户名和密码获取用户信息
        /// </summary>
        /// <param name="Name">用户名</param>
        /// <param name="Passowrd">密码</param>
        /// <returns></returns>
        User GetUser(string Name, string Passowrd);

        /// <summary>
        /// 获取所有用户&&查询
        /// </summary>
        /// <returns></returns>
        List<User> GetUserList(string UserName);

        /// <summary>
        /// 新增用户信息
        /// </summary>
        /// <param name="Input">用户信息实体</param>
        /// <returns></returns>
        ReceiveStatus AddUserMsg(User Input);

        /// <summary>
        /// 根据主键获取用户
        /// </summary>
        /// <param name="UserId">主键</param>
        /// <returns></returns>
        User GetUserFirst(int UserId);

        /// <summary>
        /// 编辑用户信息
        /// </summary>
        /// <param name="Input">用户信息实体</param>
        /// <returns></returns>
        ReceiveStatus EditUserMsg(User Input);

        /// <summary>
        /// 根据主键删除用户信息
        /// </summary>
        /// <param name="UserId">用户主键</param>
        /// <returns></returns>
        ReceiveStatus DelUserMsg(int UserId);

    }
}
